import random

from food import Food

class Fruit(Food):
    def __init__(self):
        Food.__init__(self, random.randint(settings.FRUIT_AMOUNT_MIN,
                                           settings.FRUIT_AMOUNT_MAX))
        carrying_ants = []

    def needs_more_carriers(self, colony="*"):
        taken_load = 0
        for ant in carrying_ants:
            if colony == '*' or ant.colony == colony:
                load += ant.current_load
        return load <= self.amount
                

    
        
        
